{% include file="index.header.tpl.php" %}
{% include file="index.left.tpl.php" %}
 <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form action="" method="post">	
                <div class="box-header with-border">
                     <span class="fa fa-pencil" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;"></span>
                     <p class="box-title">因病缺课登记列表</p>
                     <a class="btn btn-primary btn-sm" href="index.php?a=disease.add" style="float:right"> 新 增 </a> 
                </div>
                <div class="box-body">
                      <div class="form-group">
						  <label class="col-md-1 control-label text-right" style="">
							   学生：
						  </label>
						  <div class="col-md-2 col-sm-3 col-xs-4">
							    <input type="text" class="form-control">
						  </div>
                          <button class="btn btn-primary">查询</button>
				      </div> 
                      <div class="form-group">
                                 <table class="table table-bordered" id="mytable">
                                     <thead>
                                           <tr style="background-color:#6168fe;">
                                               <td>班级名称</td>
                                               <td>学生姓名</td>
                                               <td>开始日期</td>
                                               <td>结束日期</td>
                                               <td>半天</td>
                                               <td>症状名称</td>
                                               <td>其他</td>
                                               <td>就诊</td>
                                               <td>操作</td>
                                           </tr>
                                      </thead>
									   {%foreach from=$lack_lists key=key item=value%}
                                           <tr>
                                               <td>{%$value.class_name%}</td>
                                               <td>{%$value.student_name%}</td>
                                               <td>{%$value.start_time%}</td>
                                               <td>{%$value.end_time%}</td>
                                               <td>
											   {%if $value.lack_while ==1%}
                                                    <span class="glyphicon glyphicon-ok"> </span>
											   {%/if%}
                                               </td>
                                               <td>症状名称</td>
                                               <td>{%$value.lack_rests%}</td>
                                               <td>
											   {%if $value.lack_doctor ==1%}
                                                    <span class="glyphicon glyphicon-ok"> </span>
											   {%/if%}
                                               </td>
                                               <td>
                                                   <a class="btn btn-warning btn-sm" href="index.php?a=disease.update&lack_id={%$value.lack_id%}" title="修改"><i class="fa fa-edit (alias)"></i></a>
                                               </td>
                                           </tr>
									   {%/foreach%}
                                 </table>
				     </div><!--box-body -->
               </form>
			    <div class="box-footer">
					{%$page%}
			 </div>
           </div><!--box box-default box-solid-->
         </section>   
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{% include file="index.footer.tpl.php" %}
